@use './global.scss' as vars;

html,
body,
#app,
.page-box {
    width: 100%;
    height: 100%;
}

.mixin-page {
    display: flex;
    padding-top: vars.$menu-height;
    width: 100%;
    height: 100%;
}

.layout-box,
.page-view {
    width: 100%;
    height: 100%;
}

.header-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    height: vars.$menu-height;
}

.sidebar-box {
    display: flex;
    padding-top: 8px;
    width: 200px;
    transition: all 0.3s;
    flex-direction: column;

    .el-sub-menu__title,
    .el-menu-item {
        margin-bottom: 8px;
        height: 40px !important;
        line-height: 40px !important;
    }

    .el-scrollbar {
        flex: 1;

        .el-scrollbar__wrap {
            overflow-x: hidden;
        }

        .el-menu {
            border-right: none;
        }
    }

    .sidebar-footer {
        padding: 20px;

        &.is-collapse {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
        }
    }

    .collapse-btn {
        background: url('~@/assets/icons/expand.png') no-repeat;
        background-size: cover;
    }
}
